(0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_truth
-------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (26.7ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 18:21:10.781945"], ["email", "george"], ["updated_at", "2014-11-02 18:21:10.781945"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.3ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (2.6ms)  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) 
   (2.1ms)  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "email" varchar) 
   (2.5ms)  CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
   (0.1ms)  select sqlite_version(*)
   (2.6ms)  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
   (0.1ms)  SELECT version FROM "schema_migrations"
   (3.0ms)  INSERT INTO "schema_migrations" (version) VALUES ('20141102184628')
   (3.4ms)  INSERT INTO "schema_migrations" (version) VALUES ('20141102032530')
   (2.5ms)  INSERT INTO "schema_migrations" (version) VALUES ('20141102181658')
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.9ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 18:47:14.094545"], ["email", "george"], ["updated_at", "2014-11-02 18:47:14.094545"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.6ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 18:48:58.492940"], ["email", "george"], ["updated_at", "2014-11-02 18:48:58.492940"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 18:57:50.795818"], ["email", "george"], ["updated_at", "2014-11-02 18:57:50.795818"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 18:59:51.140803"], ["email", "george"], ["updated_at", "2014-11-02 18:59:51.140803"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 19:00:41.385875"], ["email", "george"], ["updated_at", "2014-11-02 19:00:41.385875"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 19:02:28.232466"], ["email", "george"], ["updated_at", "2014-11-02 19:02:28.232466"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (28.1ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-02 19:04:35.347561"], ["email", "george"], ["updated_at", "2014-11-02 19:04:35.347561"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.671615"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-02 19:04:35.671615"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (20.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:40:41.657284"], ["email", "george"], ["updated_at", "2014-11-03 14:40:41.657284"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.736209"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:40:41.736209"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (24.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:40:41.768009"], ["email", "george"], ["updated_at", "2014-11-03 14:40:41.768009"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:46:10.516130"], ["email", "george"], ["updated_at", "2014-11-03 14:46:10.516130"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL)
   (3.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:46:10.571155"], ["email", "george"], ["updated_at", "2014-11-03 14:46:10.571155"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.578379"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:46:10.578379"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:50:02.230295"], ["email", "george"], ["updated_at", "2014-11-03 14:50:02.230295"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL)
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:50:02.275951"], ["email", "george"], ["updated_at", "2014-11-03 14:50:02.275951"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.281718"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:50:02.281718"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:53:19.897381"], ["email", "george"], ["updated_at", "2014-11-03 14:53:19.897381"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.935000"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:19.935000"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:53:19.942441"], ["email", "george"], ["updated_at", "2014-11-03 14:53:19.942441"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL)
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:53:45.748927"], ["email", "george"], ["updated_at", "2014-11-03 14:53:45.748927"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.785872"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:45.785872"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:53:45.796975"], ["email", "george"], ["updated_at", "2014-11-03 14:53:45.796975"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL)
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:54:53.437022"], ["email", "george"], ["updated_at", "2014-11-03 14:54:53.437022"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.473682"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:54:53.473682"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:54:53.481421"], ["email", "george"], ["updated_at", "2014-11-03 14:54:53.481421"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL)
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:59:23.822106"], ["email", "george"], ["updated_at", "2014-11-03 14:59:23.822106"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.860918"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:23.860918"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:59:23.868649"], ["email", "george"], ["updated_at", "2014-11-03 14:59:23.868649"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  Message Load (0.2ms)  SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:59:49.968516"], ["email", "george"], ["updated_at", "2014-11-03 14:59:49.968516"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.008544"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:50.008544"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-03 14:59:50.017580"], ["email", "george"], ["updated_at", "2014-11-03 14:59:50.017580"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:29:45.288119"], ["email", "george"], ["updated_at", "2014-11-04 14:29:45.288119"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (23.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:29:45.424845"], ["email", "jerry"], ["updated_at", "2014-11-04 14:29:45.424845"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.431238"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:29:45.431238"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:40:41.897801"], ["email", "george"], ["updated_at", "2014-11-04 14:40:41.897801"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (25.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:40:42.170591"], ["email", "jerry"], ["updated_at", "2014-11-04 14:40:42.170591"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.177071"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.177071"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (41.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:40:42.224404"], ["email", "george"], ["updated_at", "2014-11-04 14:40:42.224404"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.231506"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.231506"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (18.5ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:41:28.256615"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.256615"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.294732"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.294732"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:41:28.303457"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.303457"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-04 14:41:28.324825"], ["updated_at", "2014-11-04 14:41:28.325651"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:41:28.367086"], ["email", "jerry"], ["updated_at", "2014-11-04 14:41:28.367086"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.374425"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.374425"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:41:28.382885"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.382885"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:15.793736"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.793736"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.835408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.835408"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:15.844035"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.844035"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:15.853907"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:15.853907"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.860668"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.860668"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:15.900880"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.900880"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:42.068987"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.068987"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (5.5ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:42.136021"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.136021"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.143632"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.143632"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:42.153278"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.153278"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-04 14:45:42.163234"], ["updated_at", "2014-11-04 14:45:42.163927"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:45:42.183781"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.183781"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.193896"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.193896"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:47:52.905614"], ["email", "george"], ["updated_at", "2014-11-04 14:47:52.905614"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (14.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:47:52.976124"], ["email", "jerry"], ["updated_at", "2014-11-04 14:47:52.976124"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.983185"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:52.983185"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:47:53.008106"], ["email", "george"], ["updated_at", "2014-11-04 14:47:53.008106"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.016146"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:53.016146"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:47:53.023963"], ["email", "george"], ["updated_at", "2014-11-04 14:47:53.023963"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:51:22.993325"], ["email", "george"], ["updated_at", "2014-11-04 14:51:22.993325"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.030607"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.030607"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:51:23.038606"], ["email", "george"], ["updated_at", "2014-11-04 14:51:23.038606"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:51:23.046997"], ["email", "jerry"], ["updated_at", "2014-11-04 14:51:23.046997"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.052728"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.052728"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:51:23.090710"], ["email", "george"], ["updated_at", "2014-11-04 14:51:23.090710"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:52:11.578952"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.578952"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-04 14:52:11.631194"], ["updated_at", "2014-11-04 14:52:11.632305"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:52:11.648672"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.648672"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.654759"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.654759"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:52:11.662773"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.662773"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:52:11.669487"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:52:11.675231"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.675231"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.681145"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.681145"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:52:11.691394"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.691394"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.697214"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.697214"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.744920"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.744920"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:54:13.782666"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.803078"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.803078"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.811388"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.811388"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.822450"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.822450"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.844324"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.844324"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.851529"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.851529"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.865726"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.865726"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.872702"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.872702"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:54:13.881008"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.881008"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:54:13.888064"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.385615"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.385615"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.428682"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (61.6ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.509601"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.509601"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.518908"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.518908"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.523649"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (75.1ms)  rollback transaction
   (0.3ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.609070"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.609070"]]
   (0.3ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.620315"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (4.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.719168"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.719168"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-04 14:58:36.752104"], ["updated_at", "2014-11-04 14:58:36.753902"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (16.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.776419"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.776419"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.787946"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.787946"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.850151"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.850151"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.3ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (18.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-04 14:58:36.883809"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.883809"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.895573"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.895573"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (20.1ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.133602"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.133602"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:08:30.257969"], ["updated_at", "2014-11-06 15:08:30.258911"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.277097"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.277097"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.282803"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.282803"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.285867"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.333972"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.333972"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.340229"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.340229"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.343799"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.351798"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.351798"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.357126"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.363095"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.363095"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.402600"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.402600"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.412172"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.412172"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.417678"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.417678"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:08:30.428152"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.428152"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.628644"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.628644"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.664977"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.700164"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.700164"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.706247"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.718410"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.718410"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.723805"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.723805"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.740530"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.740530"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:28:10.749959"], ["updated_at", "2014-11-06 15:28:10.750724"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.787028"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.787028"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.792802"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.792802"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.795494"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.805153"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.805153"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.813136"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.813136"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.818386"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.818386"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.829178"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.829178"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.834383"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.834383"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.847520"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.847520"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.852770"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.858323"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.858323"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.864131"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.864131"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.871532"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.871532"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.876965"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.888117"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.888117"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.893944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.893944"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.902204"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.902204"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.908351"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:28:10.915308"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.915308"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.920570"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.920570"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:27.878276"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.878276"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:32:27.929333"], ["updated_at", "2014-11-06 15:32:27.930184"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:27.949847"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.949847"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.955801"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.955801"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:27.963229"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.963229"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:27.968567"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:27.974441"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.974441"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.979694"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.979694"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:27.991591"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.991591"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.998786"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.998786"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.006056"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.006056"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.011409"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.066964"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.066964"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.072635"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.080188"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.080188"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.088810"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.088810"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.097548"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.097548"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.105389"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.105389"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.108749"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.117274"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.117274"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:32:28.125208"], ["updated_at", "2014-11-06 15:32:28.125772"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.131123"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.131123"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.136261"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.136261"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.144345"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.144345"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.150063"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.150063"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.160750"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.160750"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.168724"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.168724"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.174055"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.174055"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.176713"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:32:28.185741"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.185741"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.190947"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.190947"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.194182"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.2ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.331377"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.331377"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.358733"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.358733"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.399127"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (3.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.449473"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.449473"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.458177"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.471076"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.471076"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.479781"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.479781"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.544367"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.544367"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (4.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.560069"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.560069"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.571780"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.571780"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.575859"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.584716"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.584716"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.593317"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.593317"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.602895"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.602895"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:34:49.612742"], ["updated_at", "2014-11-06 15:34:49.613329"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.620631"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.620631"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.627364"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.627364"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.638517"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.638517"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.646876"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.646876"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.3ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.657427"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.657427"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (4.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.673899"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.673899"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.681609"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.681609"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.686663"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.695719"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.695719"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.704159"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.718817"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.718817"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.727195"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.736903"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.736903"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:34:49.747363"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.747363"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.571294"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.571294"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.609051"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.630763"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.630763"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.636545"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.636545"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.639325"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.663540"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.663540"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.669644"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.669644"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.677774"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.677774"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.683231"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.683231"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.731867"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.731867"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.737569"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.744218"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.744218"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.749458"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.749458"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.762655"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.762655"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.772334"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.772334"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.780643"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.780643"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.791333"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.791333"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.797259"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.797259"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.805001"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.805001"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.811523"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.811523"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.814038"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.822632"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.822632"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.827761"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.827761"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.837716"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.837716"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.842911"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.848212"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.848212"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.853562"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.853562"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.861133"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.861133"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:36:23.869715"], ["updated_at", "2014-11-06 15:36:23.870430"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:36:23.876338"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.876338"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.882207"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.882207"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.884775"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (30.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.773629"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.773629"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.780338"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.815572"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.815572"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.821192"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.834335"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.834335"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.840323"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.840323"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.843246"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.852101"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.852101"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.870895"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.870895"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.876478"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.876478"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.915985"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.915985"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:41:20.924156"], ["updated_at", "2014-11-06 15:41:20.924857"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.930650"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.930650"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.935945"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.935945"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.945420"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.945420"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.951488"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.951488"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.954540"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.964797"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.964797"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.976957"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.976957"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.982206"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.982206"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.984699"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:20.994031"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.994031"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.001398"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.001398"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:21.015340"], ["email", "george"], ["updated_at", "2014-11-06 15:41:21.015340"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:21.023055"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:21.023055"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.028351"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.028351"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:41:21.030873"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:41:21.038820"], ["email", "george"], ["updated_at", "2014-11-06 15:41:21.038820"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.044800"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.044800"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.214358"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.214358"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.223378"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.223378"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.228707"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.228707"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.252199"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.252199"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.257995"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.274052"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.274052"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.279458"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.279458"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.281943"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.290373"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.290373"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:43:14.297806"], ["updated_at", "2014-11-06 15:43:14.298860"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.304609"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.304609"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.309836"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.309836"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.318839"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.318839"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.324842"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.324842"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.327753"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.382530"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.382530"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.389129"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.389129"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.397977"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.397977"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.403181"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.403181"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.413030"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.413030"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.419121"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.424858"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.424858"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.430064"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.430064"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.439045"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.439045"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.446690"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.457748"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.457748"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:43:14.467147"], ["updated_at", "2014-11-06 15:43:14.467739"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:43:14.472843"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.472843"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.477944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.477944"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.480401"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.2ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.281707"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.281707"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (6.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.444802"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.444802"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.458197"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.458197"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.465083"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.3ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.3ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.502748"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.502748"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.516590"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.3ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.528290"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.528290"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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.542378"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.542378"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.548966"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.3ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (3.3ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.594236"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.594236"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.607623"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.607623"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.1ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.625348"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.625348"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.638669"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.638669"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (54.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.725231"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.725231"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.744691"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.744691"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.758272"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.758272"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.765916"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.783042"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.783042"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.795740"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.795740"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.813300"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.813300"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.828038"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.828038"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.6ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.844174"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.844174"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.4ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:46:12.862296"], ["updated_at", "2014-11-06 15:46:12.863553"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.8ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.875074"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.875074"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.888792"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.888792"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.894553"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.911534"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.911534"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.925311"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.1ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:46:12.937198"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.937198"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.950001"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.950001"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (3.4ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.2ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.148876"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.148876"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (6.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.280668"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.280668"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.293860"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.293860"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.311407"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.311407"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.325162"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.325162"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.331280"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.375249"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.375249"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:48:09.413533"], ["updated_at", "2014-11-06 15:48:09.415344"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.427797"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.427797"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.441022"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.441022"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.446987"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.464284"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.464284"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.481424"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.3ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (4.2ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.586408"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.586408"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (4.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.613076"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.613076"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.3ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.633388"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.633388"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.655777"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.655777"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.669883"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.669883"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.698813"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.698813"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.712335"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (3.9ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.736373"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.736373"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.4ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (3.1ms)  rollback transaction
   (0.2ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.759208"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.759208"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.773522"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.773522"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.779513"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.9ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.799853"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.799853"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.813282"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.2ms)  rollback transaction
   (0.2ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.823660"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.823660"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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.838198"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.838198"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.3ms)  rollback transaction
   (0.2ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:48:09.856944"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.856944"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.871844"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.871844"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (3.3ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.144268"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.144268"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.168318"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.168318"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.173816"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.173816"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.182675"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.182675"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.188326"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.205217"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.205217"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.211518"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.211518"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.221394"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.221394"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.226611"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.226611"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.240303"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.240303"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.246975"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.252598"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.252598"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.257783"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.257783"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.260255"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.313882"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.313882"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.319450"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.319450"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.328585"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.328585"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.333786"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.333786"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.343511"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.343511"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.349692"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.360623"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.360623"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.366589"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.372183"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.372183"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.377405"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.377405"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.390093"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.390093"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:50:26.398924"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.398924"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.404066"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.404066"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.406556"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.268907"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.268907"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:52:22.352172"], ["updated_at", "2014-11-06 15:52:22.353347"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.368403"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.368403"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.373883"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.373883"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.382165"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.382165"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.387426"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.387426"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.397188"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.397188"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.403061"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.409401"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.409401"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.414618"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.414618"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.422258"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.422258"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.427578"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.482765"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.482765"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.488601"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.495523"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.495523"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.500719"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.500719"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.503388"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.511538"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.511538"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.517579"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.517579"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.525457"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.525457"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.531108"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.531108"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.539824"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.539824"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:52:22.547613"], ["updated_at", "2014-11-06 15:52:22.548414"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.554607"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.554607"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.561368"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.561368"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.564420"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.572651"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.572651"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:22.583770"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.583770"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.589211"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.589211"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.591782"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.225999"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.225999"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:52:44.247516"], ["updated_at", "2014-11-06 15:52:44.248496"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.264839"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.264839"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.270331"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.270331"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.273021"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.294758"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.294758"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.300884"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.300884"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.309733"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.309733"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.314925"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.314925"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.317493"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.326011"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.326011"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.364369"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.370170"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.370170"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.375684"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.375684"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.385628"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.385628"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.395021"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.395021"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.400192"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.400192"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.402680"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.412029"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.412029"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.417127"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.417127"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.426286"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.426286"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.431423"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.431423"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.438890"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.438890"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.449588"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.449588"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.455545"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.455545"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.458210"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.466009"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.466009"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:52:44.473268"], ["updated_at", "2014-11-06 15:52:44.473899"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:52:44.479169"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.479169"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.484835"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.484835"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.488425"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.618291"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.618291"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.624107"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.642831"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.642831"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.649297"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.649297"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.657239"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.657239"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.679264"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.679264"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.684694"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.684694"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.687194"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.695964"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.695964"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.701772"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.759339"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.759339"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:58:06.768100"], ["updated_at", "2014-11-06 15:58:06.768969"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.775130"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.775130"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.781002"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.781002"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.790721"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.790721"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.797329"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.797329"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.800552"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.808306"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.808306"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.814026"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.814026"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.822569"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.822569"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:58:06.829874"], ["updated_at", "2014-11-06 15:58:06.830460"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.836009"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.836009"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.841934"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.841934"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.849878"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.849878"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.855223"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.860898"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.860898"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.866158"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.866158"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.868613"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:06.877297"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.877297"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.883026"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.883026"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.667925"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.667925"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.734611"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.753628"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.753628"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.759450"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.759450"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.762081"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.787657"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.787657"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.794425"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.794425"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.803249"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.803249"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.808503"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.808503"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.815907"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.815907"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:58:29.830352"], ["updated_at", "2014-11-06 15:58:29.831273"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.837824"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.837824"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.844054"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.844054"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.885518"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.885518"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.892729"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.900625"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.900625"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.905944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.905944"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.914280"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.914280"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.919490"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.919490"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.929304"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.929304"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:58:29.937348"], ["updated_at", "2014-11-06 15:58:29.937926"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.943542"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.943542"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.948663"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.948663"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.951110"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.958905"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.958905"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.964332"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.969822"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.969822"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.975113"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.975113"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:29.983426"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.983426"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.988852"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.156961"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.156961"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:58:54.236758"], ["updated_at", "2014-11-06 15:58:54.237684"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (40.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.291234"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.291234"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.297699"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.297699"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.305488"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.305488"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.311351"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.316909"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.316909"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.322072"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.322072"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.331603"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.331603"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.337632"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.337632"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.340636"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.362203"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.362203"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.368452"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.368452"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.371422"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.410355"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.410355"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.422055"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.422055"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.430482"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.430482"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.6ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.440947"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.440947"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.447099"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.447099"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.455500"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.455500"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.465867"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.465867"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.471282"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.471282"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.473719"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.481466"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.481466"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.487368"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.499065"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.499065"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.504833"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.511138"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.511138"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.516440"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.516440"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:58:54.529673"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.529673"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.537043"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.537043"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.474711"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.474711"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.500046"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.500046"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.506344"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.506344"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.516137"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.516137"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.521416"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.521416"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.529203"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.529203"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.536014"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.551445"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.551445"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.556887"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.556887"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.570301"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.570301"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.577208"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.583150"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.583150"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.589842"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.589842"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.592864"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.645164"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.645164"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.650850"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.650850"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.653667"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.661650"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.661650"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.672092"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.672092"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.677325"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.677325"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.680840"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.689374"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.689374"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.694760"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.705264"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.705264"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 15:59:42.712727"], ["updated_at", "2014-11-06 15:59:42.713490"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.719878"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.719878"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.726722"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.726722"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 15:59:42.735813"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.735813"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.743567"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.743567"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (5.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.245004"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.245004"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.270646"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.270646"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.276147"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.276147"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.284301"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.284301"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:04:00.291544"], ["updated_at", "2014-11-06 16:04:00.292316"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.308850"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.308850"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.315062"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.315062"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.317855"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.327167"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.327167"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.332928"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.332928"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.340891"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.340891"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.346928"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.406300"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.406300"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.412293"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.418195"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.418195"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.423435"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.423435"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.430692"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.430692"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.435987"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.448466"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.448466"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.458819"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.458819"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.463969"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.463969"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.476467"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.476467"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.482459"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.488057"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.488057"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.493325"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.493325"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:00.502284"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.502284"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.507509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.507509"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.510006"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:49.986589"], ["email", "george"], ["updated_at", "2014-11-06 16:04:49.986589"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:49.995495"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:49.995495"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.000747"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.000747"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.025436"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.025436"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.030965"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.063612"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.063612"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.069383"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.076842"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.076842"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.082649"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.082649"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.128492"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.128492"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.134016"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.140179"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.140179"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.145467"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.145467"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.154934"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.154934"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.160667"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.160667"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.163648"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.171642"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.171642"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.177446"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.177446"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.188542"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.188542"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.193852"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.200200"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.200200"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.208571"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.208571"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.212285"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.220425"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.220425"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:04:50.227840"], ["updated_at", "2014-11-06 16:04:50.228398"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.233729"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.233729"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.238835"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.238835"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:04:50.246229"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.246229"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.252257"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.252257"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.021173"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.021173"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:08:12.072048"], ["updated_at", "2014-11-06 16:08:12.072867"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.092739"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.092739"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.098513"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.098513"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.101275"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.123283"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.123283"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.129564"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.129564"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.140593"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.140593"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.146129"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.152168"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.152168"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.157395"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.157395"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.165674"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.165674"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.202130"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.202130"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.210440"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.210440"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.216430"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.223055"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.223055"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.231511"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.231511"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.245325"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.245325"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.252377"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.252377"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.260572"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.260572"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.265819"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.265819"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.273306"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.273306"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.279917"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.285320"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.285320"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.290562"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.290562"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.300934"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.300934"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:08:12.308672"], ["updated_at", "2014-11-06 16:08:12.309427"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.315404"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.315404"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.321346"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.321346"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.323989"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:08:12.332262"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.332262"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.338265"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.338265"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.341385"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.544950"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.544950"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.616606"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.616606"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.622390"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.622390"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.625139"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.645454"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.645454"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.666969"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.666969"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.674389"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.674389"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.678072"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.685772"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.685772"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.691538"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.691538"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.699209"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.699209"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:11:15.707197"], ["updated_at", "2014-11-06 16:11:15.707899"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.713119"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.713119"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.718813"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.718813"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.721602"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.774152"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.774152"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.782853"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.782853"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.5ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.792000"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.792000"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.797312"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.797312"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.799891"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.808286"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.808286"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.815229"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.826835"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.826835"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.832620"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.832620"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.840265"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.840265"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.848204"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.848204"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.853509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.853509"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.855951"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.863765"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.863765"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:11:15.875143"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.875143"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.880286"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.880286"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:20.918804"], ["email", "george"], ["updated_at", "2014-11-06 16:12:20.918804"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:20.956645"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:20.978018"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:20.978018"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.983880"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:20.983880"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:20.991219"], ["email", "george"], ["updated_at", "2014-11-06 16:12:20.991219"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:12:21.007358"], ["updated_at", "2014-11-06 16:12:21.008181"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.014894"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.014894"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.020311"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.020311"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.023121"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.031354"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.031354"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.037626"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.037626"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.045108"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.045108"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.050888"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.3ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.107209"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.107209"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (139.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.258131"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.258131"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.264914"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.264914"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (85.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.360213"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.360213"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.368456"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.379082"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.379082"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.384317"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.390381"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.390381"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.395847"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.395847"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.410673"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.410673"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.418707"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.418707"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.423939"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.423939"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.426428"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:21.436264"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.436264"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.443291"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.443291"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.744926"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.744926"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.784514"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (7.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.810464"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.810464"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.816685"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.816685"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (4.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.849234"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.849234"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.862321"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.862321"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.867921"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.867921"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.870585"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.893973"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.893973"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.900265"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.900265"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.908443"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.908443"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.947138"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.947138"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.955062"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.955062"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.961034"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.967588"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.967588"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.975764"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.975764"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:49.985195"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.985195"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.991153"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.991153"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.994312"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.002597"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.002597"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:50.007834"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.017930"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.017930"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.028094"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.028094"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.033212"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.033212"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:50.037033"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.044910"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.044910"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.051770"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.051770"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.060142"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.060142"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:12:50.068679"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.068679"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.074008"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.074008"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.711194"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.711194"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (11.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.806488"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.806488"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.812960"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.812960"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.815760"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.835124"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.835124"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.842140"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.842140"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.849480"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.849480"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.854822"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.878483"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.878483"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.887225"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.887225"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.892811"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.892811"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.896223"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.936063"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.936063"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:14:51.945936"], ["updated_at", "2014-11-06 16:14:51.946752"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.954420"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.954420"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.960183"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.960183"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.970151"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.970151"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:14:51.977286"], ["updated_at", "2014-11-06 16:14:51.977882"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.983173"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.983173"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.989066"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.989066"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.991674"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:51.999792"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.999792"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:52.007775"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.007775"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.012967"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.012967"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:52.015434"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:52.023797"], ["email", "george"], ["updated_at", "2014-11-06 16:14:52.023797"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.029553"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.029553"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:14:52.038510"], ["email", "george"], ["updated_at", "2014-11-06 16:14:52.038510"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:52.044942"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.6ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:07.937051"], ["email", "george"], ["updated_at", "2014-11-06 16:16:07.937051"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.007557"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.028818"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.028818"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.034850"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.034850"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.059055"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.059055"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.065706"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.092451"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.092451"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.103450"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.103450"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.108760"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.108760"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.111323"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.119297"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.119297"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.158168"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.158168"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.163875"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.163875"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.174609"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.174609"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.182952"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.182952"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.193132"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.193132"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.199396"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.199396"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.201950"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.209988"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.209988"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.215283"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.215283"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.230173"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.230173"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.236127"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.241393"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.241393"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.247319"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.247319"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.249865"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.257682"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.257682"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.264738"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.264738"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.272109"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.272109"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:16:08.282655"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.282655"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.287999"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.287999"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.512045"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.512045"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.585660"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.585660"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.591128"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.591128"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.594078"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.626949"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.626949"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.632498"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.632498"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.640995"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.640995"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.646375"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.646375"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.648857"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.664544"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.664544"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:18:03.679481"], ["updated_at", "2014-11-06 16:18:03.680314"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.686668"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.686668"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.691987"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.691987"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.6ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.735056"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.735056"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.741415"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.747587"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.747587"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.752894"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.752894"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.761519"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.761519"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.767323"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.767323"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.770211"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.778976"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.778976"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.784377"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.790193"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.790193"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.795316"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.795316"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.797743"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.805784"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.805784"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.811480"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.811480"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.825339"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.825339"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:18:03.833983"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.833983"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.840104"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.840104"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:02.955513"], ["email", "george"], ["updated_at", "2014-11-06 16:19:02.955513"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.023524"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.044975"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.044975"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.050986"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.050986"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.053756"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.077956"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.077956"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.084865"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.084865"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.092798"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.092798"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.098869"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.098869"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.106662"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.106662"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.123366"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.123366"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.129443"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.129443"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.132219"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.172027"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.172027"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:19:03.180546"], ["updated_at", "2014-11-06 16:19:03.181221"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.189457"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.189457"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.194682"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.194682"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.208051"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.208051"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.218255"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.218255"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.223774"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.223774"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.226399"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.235187"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.235187"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.243123"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.243123"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.248421"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.248421"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.256693"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.256693"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.261878"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.261878"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.264507"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:19:03.274619"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.274619"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.280286"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.280286"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.283649"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.334990"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.334990"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.341964"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.341964"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.349607"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.349607"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.355037"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.390901"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.390901"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.398785"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.398785"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.403980"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.403980"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.463112"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.463112"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.468539"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.474097"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.474097"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.479300"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.479300"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.489437"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.489437"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.495343"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.502286"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.502286"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.507471"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.507471"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.509982"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.518077"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.518077"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.523315"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.523315"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.533294"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.533294"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.541338"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.547016"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.547016"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.552772"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.552772"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.561162"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.561162"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.566411"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.566411"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.579244"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.579244"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:21:25.588294"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.588294"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.593515"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.593515"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.595979"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:40.906913"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.906913"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:22:40.950135"], ["updated_at", "2014-11-06 16:22:40.951062"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:40.969602"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.969602"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.975446"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.975446"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:40.984007"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.984007"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.989171"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.989171"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:40.991629"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:40.999644"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.999644"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.007785"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.007785"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.013121"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.013121"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.015754"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.068257"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.068257"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.074408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.074408"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.085376"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.085376"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.090712"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.096424"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.096424"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.101705"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.101705"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.104550"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.112571"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.112571"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.118114"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.118114"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.127581"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.127581"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.132751"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.132751"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.135204"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.142987"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.142987"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:22:41.151019"], ["updated_at", "2014-11-06 16:22:41.151854"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.157680"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.157680"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.162915"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.162915"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.172518"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.172518"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.182036"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.182036"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:22:41.190410"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.190410"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (5.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.685769"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.685769"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-06 16:23:30.706912"], ["updated_at", "2014-11-06 16:23:30.707735"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.724689"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.724689"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.730154"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.730154"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.737872"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.737872"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.743216"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.749141"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.749141"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.755123"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.755123"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.764958"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.764958"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.770212"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.770212"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.772687"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.827412"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.827412"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.833638"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.833638"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.836765"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.845611"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.845611"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.857556"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.857556"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.863366"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.863366"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.874291"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.874291"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.882800"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.882800"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.888658"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.888658"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.891384"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.899589"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.899589"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.906799"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.912268"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.912268"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.917778"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.917778"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.920478"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.929140"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.929140"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.935001"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.935001"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-06 16:23:30.949946"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.949946"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.957023"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.957023"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:52.958606"], ["email", "george"], ["updated_at", "2014-11-07 15:08:52.958606"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.004380"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.074445"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.074445"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.080584"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.113629"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.113629"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.119857"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.119857"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.127627"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.127627"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.134174"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.134174"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.141356"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.141356"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.147248"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.152890"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.152890"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.188782"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.188782"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.232494"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.232494"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.238124"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.248815"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.248815"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.254633"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.254633"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.263794"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.263794"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:08:53.272762"], ["updated_at", "2014-11-07 15:08:53.273576"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.279832"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.279832"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.285532"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.285532"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.287968"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.296303"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.296303"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.301578"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.307060"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.307060"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.312447"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.312447"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.322734"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.322734"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.331378"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.331378"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:08:53.339866"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.339866"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.329707"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.329707"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (5.5ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.364550"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.364550"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.370536"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.370536"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.373350"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.394284"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.394284"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:17:47.413393"], ["updated_at", "2014-11-07 15:17:47.414211"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.421535"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.421535"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.427445"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.427445"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.430334"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (3.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.441374"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.441374"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.453201"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.453201"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.462470"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.462470"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.6ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.479053"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.479053"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.488922"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.488922"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.491597"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.500630"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.500630"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.508621"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.568622"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.568622"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.577447"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.577447"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.585595"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.585595"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.596518"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.596518"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.602589"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.602589"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.615698"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.615698"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.621976"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:17:47.627211"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.627211"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.632427"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.632427"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)  [["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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.581087"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.581087"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.609697"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (5.3ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.645799"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.645799"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.654229"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.654229"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.659540"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.659540"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.668520"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.668520"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.673783"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.673783"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.3ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.730584"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.730584"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.736795"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.742104"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.742104"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.747459"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.747459"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.758298"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.758298"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.765750"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.765750"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.773515"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.773515"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.779636"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.786010"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.786010"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.791408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.791408"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.801571"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.801571"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:18:28.809975"], ["updated_at", "2014-11-07 15:18:28.810536"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.815890"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.815890"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.821096"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.821096"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.828928"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.828928"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.834298"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.844870"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.844870"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.850449"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.858625"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.858625"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:18:28.866862"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.866862"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (29.5ms)  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.954871"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:34.954871"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:34.995001"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:34.995001"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (1.6ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.010451"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.010451"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:44:35.064637"], ["updated_at", "2014-11-07 15:44:35.065650"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.083429"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.083429"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.089125"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.089125"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.091941"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.186048"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.186048"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.191973"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.191973"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.200647"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.200647"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.206554"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.212731"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.212731"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.218535"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.218535"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.230134"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.230134"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.237391"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.237391"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.248484"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.248484"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.258569"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.267702"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.267702"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.276258"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.276258"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.280958"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.3ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.291817"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.291817"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.301714"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.301714"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.306180"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.317257"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.317257"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.328482"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.4ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.335602"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.335602"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.344569"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.344569"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.361337"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.361337"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.371579"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.371579"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.378626"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.378626"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:44:35.390183"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.390183"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.398028"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.398028"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.6ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:13.901414"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.901414"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:45:13.943746"], ["updated_at", "2014-11-07 15:45:13.944671"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:13.960100"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.960100"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.965793"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.965793"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:13.976793"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.976793"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:13.985753"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.985753"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.991199"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.991199"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:13.993895"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.002632"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.002632"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.009150"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.014824"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.014824"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.020770"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.020770"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.023535"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.081837"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.081837"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.087837"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.087837"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.097596"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.097596"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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.112734"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.112734"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.122446"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.122446"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.128978"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.128978"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.137910"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.137910"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.143347"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.143347"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.151087"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.151087"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.156942"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.163052"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.163052"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.168651"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.168651"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.179834"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.179834"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:45:14.187265"], ["updated_at", "2014-11-07 15:45:14.187841"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.193488"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.193488"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.199271"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.199271"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.201845"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:14.210608"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.210608"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.216110"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (1.9ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.0ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.658603"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.658603"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.704588"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.704588"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.710378"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.710378"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.718138"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.718138"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.726044"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (27.5ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.768879"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.768879"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.775557"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.775557"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.789811"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.789811"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.795391"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.2ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.853597"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.853597"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.860085"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.865849"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.865849"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.871340"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.871340"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.881172"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.881172"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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.898161"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.898161"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.909071"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.909071"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.914829"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.914829"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.924195"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.924195"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.930433"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.930433"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.933427"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.941332"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.941332"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.947964"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.953686"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.953686"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.959225"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.959225"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.969989"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.969989"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:45:39.978597"], ["updated_at", "2014-11-07 15:45:39.979293"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.984834"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.984834"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.990314"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.990314"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:45:39.998326"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.998326"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:40.003709"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.4ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)  begin transaction
----------------------------------------
UserModelTest: test_unread_message_count
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  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.347194"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.347194"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------
UserModelTest: test_unread_messages?
------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.357193"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.357193"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "messages"
   (2.0ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------
MessageModelTest: test_create_message
-------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.373103"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.373103"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.380880"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.380880"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------
MessageModelTest: test_read?
----------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.389082"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.389082"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.3ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["read_at", "2014-11-07 15:50:47.410613"], ["updated_at", "2014-11-07 15:50:47.411458"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
MessageModelTest: test_read_returns_message
-------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.428114"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.428114"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.434697"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.434697"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (2.5ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_mark_deleted_recipient
---------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.448959"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.448959"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.455430"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
MessageModelTest: test_mark_deleted_both
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.462009"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.462009"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.467672"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.467672"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.470960"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.1ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.1ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------
MessageModelTest: test_mark_deleted_sender
------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.524018"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.524018"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.530412"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.530412"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.533563"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
MessageModelTest: test_read_records_timestamp
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.541781"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.541781"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------
PrivateMessagesTest: test_read?
-------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.551370"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.551370"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.556974"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.556974"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.1ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
-------------------------------------------
PrivateMessagesTest: test_mark_deleted_both
-------------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.572375"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.572375"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.578661"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.0ms)  DELETE FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Exists (0.0ms)  SELECT "messages".* FROM "messages" WHERE "messages"."id" = ?  [["id", 1]]
   (2.2ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_read_records_timestamp
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.589737"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.589737"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (1.7ms)  rollback transaction
   (0.1ms)  begin transaction
---------------------------------------------
PrivateMessagesTest: test_mark_deleted_sender
---------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.598937"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.598937"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  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.607789"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.607789"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.611230"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (1.8ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------------
PrivateMessagesTest: test_read_returns_message
----------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.620461"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.620461"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.2ms)  SELECT  "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))  ORDER BY "messages"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (1.9ms)  rollback transaction
   (0.1ms)  begin transaction
------------------------------------------------
PrivateMessagesTest: test_mark_deleted_recipient
------------------------------------------------
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.634870"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.634870"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.645495"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.645495"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1  [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.649451"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Message Load (0.0ms)  SELECT  "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1  [["id", 1]]
   (20.0ms)  rollback transaction
   (0.1ms)  begin transaction
----------------------------------------
PrivateMessagesTest: test_create_message
----------------------------------------
   (0.1ms)  SAVEPOINT active_record_1
  SQL (17.4ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (40.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", "2014-11-07 15:50:47.696031"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.696031"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (27.9ms)  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"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  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.774196"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.774196"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (154.7ms)  rollback transaction