mail_sleuth 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,8 +20,13 @@ class MessageLog < ActiveRecord::Base
20
20
  attributes['delivery_handler'].constantize
21
21
  end
22
22
 
23
+ # HACK: bypass the ActiveModel::Errors
24
+
25
+ def errors
26
+ attributes['errors'].unserialize
27
+ end
28
+
23
29
  class << self
24
- # HACK: ignoring AR errors method
25
30
  def instance_method_already_implemented?(method_name)
26
31
  return true if method_name == 'errors'
27
32
  super
@@ -1,3 +1,3 @@
1
1
  module MailSleuth
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
@@ -995,3 +995,268 @@ TypeError: can't dump anonymous class Class: INSERT INTO "message_logs" ("charse
995
995
   (0.0ms) RELEASE SAVEPOINT active_record_1
996
996
  MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
997
997
   (0.1ms) rollback transaction
998
+  (0.1ms) begin transaction
999
+ Fixture Delete (0.2ms) DELETE FROM "users"
1000
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1001
+  (27.5ms) commit transaction
1002
+  (0.1ms) begin transaction
1003
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1004
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1005
+ Rendered notifier/welcome.html.erb (1.0ms)
1006
+  (0.1ms) SAVEPOINT active_record_1
1007
+ SQL (4.2ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:32:30 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1009
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1010
+  (0.1ms) rollback transaction
1011
+  (0.1ms) begin transaction
1012
+ Fixture Delete (0.3ms) DELETE FROM "users"
1013
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1014
+  (21.6ms) commit transaction
1015
+  (0.1ms) begin transaction
1016
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1018
+ Rendered notifier/welcome.html.erb (0.7ms)
1019
+  (0.1ms) SAVEPOINT active_record_1
1020
+ SQL (0.7ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:33:08 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1022
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" 
1023
+  (0.1ms) rollback transaction
1024
+  (0.1ms) begin transaction
1025
+ Fixture Delete (0.1ms) DELETE FROM "users"
1026
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1027
+  (30.3ms) commit transaction
1028
+  (0.1ms) begin transaction
1029
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1030
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1031
+ Rendered notifier/welcome.html.erb (0.6ms)
1032
+  (0.1ms) SAVEPOINT active_record_1
1033
+ SQL (0.6ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:33:22 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1035
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1036
+  (0.1ms) rollback transaction
1037
+  (0.1ms) begin transaction
1038
+ Fixture Delete (0.2ms) DELETE FROM "users"
1039
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1040
+  (28.7ms) commit transaction
1041
+  (0.1ms) begin transaction
1042
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1044
+ Rendered notifier/welcome.html.erb (0.7ms)
1045
+  (0.1ms) SAVEPOINT active_record_1
1046
+ SQL (1.1ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:33:54 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1048
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1049
+  (0.1ms) rollback transaction
1050
+  (0.1ms) begin transaction
1051
+ Fixture Delete (0.1ms) DELETE FROM "users"
1052
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1053
+  (41.1ms) commit transaction
1054
+  (0.1ms) begin transaction
1055
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1056
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1057
+ Rendered notifier/welcome.html.erb (0.7ms)
1058
+  (0.1ms) SAVEPOINT active_record_1
1059
+ SQL (0.7ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:35:47 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
+  (0.1ms) rollback transaction
1062
+  (0.0ms) begin transaction
1063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1064
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1065
+ Rendered notifier/welcome.html.erb (0.0ms)
1066
+  (0.1ms) SAVEPOINT active_record_1
1067
+ SQL (0.1ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:35:47 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+ MessageLog Load (0.2ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1070
+  (0.1ms) rollback transaction
1071
+  (0.0ms) begin transaction
1072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1073
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1074
+ Rendered notifier/welcome.html.erb (0.0ms)
1075
+  (0.1ms) SAVEPOINT active_record_1
1076
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:35:47 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.1ms) rollback transaction
1079
+  (0.1ms) begin transaction
1080
+ Fixture Delete (0.2ms) DELETE FROM "users"
1081
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1082
+  (27.6ms) commit transaction
1083
+  (0.1ms) begin transaction
1084
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1085
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1086
+ Rendered notifier/welcome.html.erb (0.8ms)
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+ SQL (0.7ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:36:40 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1090
+  (0.1ms) rollback transaction
1091
+  (0.0ms) begin transaction
1092
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1093
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1094
+ Rendered notifier/welcome.html.erb (0.0ms)
1095
+  (0.1ms) SAVEPOINT active_record_1
1096
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:36:40 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1099
+  (0.1ms) rollback transaction
1100
+  (0.0ms) begin transaction
1101
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1102
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1103
+ Rendered notifier/welcome.html.erb (0.0ms)
1104
+  (0.1ms) SAVEPOINT active_record_1
1105
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:36:40 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1107
+  (0.1ms) rollback transaction
1108
+  (0.1ms) begin transaction
1109
+ Fixture Delete (0.2ms) DELETE FROM "users"
1110
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1111
+  (18.8ms) commit transaction
1112
+  (0.1ms) begin transaction
1113
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1115
+ Rendered notifier/welcome.html.erb (0.7ms)
1116
+  (0.6ms) SAVEPOINT active_record_1
1117
+ SQL (0.6ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:16 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1119
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1120
+  (0.1ms) rollback transaction
1121
+  (0.0ms) begin transaction
1122
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1123
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1124
+ Rendered notifier/welcome.html.erb (0.1ms)
1125
+  (0.1ms) SAVEPOINT active_record_1
1126
+ SQL (0.2ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:16 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1128
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1129
+  (0.1ms) rollback transaction
1130
+  (0.0ms) begin transaction
1131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1132
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1133
+ Rendered notifier/welcome.html.erb (0.0ms)
1134
+  (0.0ms) SAVEPOINT active_record_1
1135
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:16 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1137
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1138
+  (0.1ms) rollback transaction
1139
+  (0.1ms) begin transaction
1140
+ Fixture Delete (0.1ms) DELETE FROM "users"
1141
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1142
+  (34.3ms) commit transaction
1143
+  (0.1ms) begin transaction
1144
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1146
+ Rendered notifier/welcome.html.erb (0.7ms)
1147
+  (0.1ms) SAVEPOINT active_record_1
1148
+ SQL (0.5ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:34 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1150
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1151
+  (0.2ms) rollback transaction
1152
+  (0.0ms) begin transaction
1153
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1154
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1155
+ Rendered notifier/welcome.html.erb (0.1ms)
1156
+  (0.1ms) SAVEPOINT active_record_1
1157
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:34 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1159
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1160
+  (0.1ms) rollback transaction
1161
+  (0.0ms) begin transaction
1162
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1163
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1164
+ Rendered notifier/welcome.html.erb (0.0ms)
1165
+  (0.1ms) SAVEPOINT active_record_1
1166
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:34 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1168
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1169
+  (0.1ms) rollback transaction
1170
+  (0.1ms) begin transaction
1171
+ Fixture Delete (0.2ms) DELETE FROM "users"
1172
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1173
+  (30.4ms) commit transaction
1174
+  (0.1ms) begin transaction
1175
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1177
+ Rendered notifier/welcome.html.erb (0.7ms)
1178
+  (0.1ms) SAVEPOINT active_record_1
1179
+ SQL (0.6ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:45 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1181
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1182
+  (0.1ms) rollback transaction
1183
+  (0.0ms) begin transaction
1184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1185
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1186
+ Rendered notifier/welcome.html.erb (0.0ms)
1187
+  (0.2ms) SAVEPOINT active_record_1
1188
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:45 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1190
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1191
+  (0.1ms) rollback transaction
1192
+  (0.0ms) begin transaction
1193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1194
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1195
+ Rendered notifier/welcome.html.erb (0.1ms)
1196
+  (0.1ms) SAVEPOINT active_record_1
1197
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:37:45 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1199
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1200
+  (0.1ms) rollback transaction
1201
+  (0.1ms) begin transaction
1202
+ Fixture Delete (0.2ms) DELETE FROM "users"
1203
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1204
+  (22.1ms) commit transaction
1205
+  (0.2ms) begin transaction
1206
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1207
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1208
+ Rendered notifier/welcome.html.erb (0.8ms)
1209
+  (0.1ms) SAVEPOINT active_record_1
1210
+ SQL (0.7ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:38:58 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1212
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1213
+  (0.1ms) rollback transaction
1214
+  (0.0ms) begin transaction
1215
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1216
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1217
+ Rendered notifier/welcome.html.erb (0.0ms)
1218
+  (0.0ms) SAVEPOINT active_record_1
1219
+ SQL (0.4ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:38:58 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1221
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1222
+  (0.1ms) rollback transaction
1223
+  (0.0ms) begin transaction
1224
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1225
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1226
+ Rendered notifier/welcome.html.erb (0.0ms)
1227
+  (0.0ms) SAVEPOINT active_record_1
1228
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:38:58 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1230
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1231
+  (0.1ms) rollback transaction
1232
+  (0.1ms) begin transaction
1233
+ Fixture Delete (0.2ms) DELETE FROM "users"
1234
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
1235
+  (35.8ms) commit transaction
1236
+  (0.1ms) begin transaction
1237
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1238
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1239
+ Rendered notifier/welcome.html.erb (0.7ms)
1240
+  (0.1ms) SAVEPOINT active_record_1
1241
+ SQL (0.8ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:40:37 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1243
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1244
+  (0.1ms) rollback transaction
1245
+  (0.2ms) begin transaction
1246
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1248
+ Rendered notifier/welcome.html.erb (0.0ms)
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:40:37 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1252
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1253
+  (0.1ms) rollback transaction
1254
+  (0.0ms) begin transaction
1255
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1256
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
1257
+ Rendered notifier/welcome.html.erb (0.2ms)
1258
+  (0.0ms) SAVEPOINT active_record_1
1259
+ SQL (0.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Wed, 21 Mar 2012 19:40:37 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
1260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1261
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
1262
+  (0.1ms) rollback transaction
@@ -4,18 +4,21 @@ class MailSleuthObserverTest < ActionMailer::TestCase
4
4
 
5
5
  fixtures :users
6
6
 
7
+ def setup
8
+ joe = users(:joe)
9
+ Notifier.welcome(joe.id).deliver!
10
+ @log = MessageLog.last
11
+ end
12
+
7
13
  def teardown
8
14
  ActionMailer::Base.deliveries.clear
9
15
  end
10
16
 
11
17
  def test_sending_welcome_message
12
- joe = users(:joe)
13
-
14
- Notifier.welcome(joe.id).deliver!
15
18
  assert !ActionMailer::Base.deliveries.empty?
19
+ end
16
20
 
17
- log = MessageLog.last
18
-
21
+ def test_message_log_has_been_recorded
19
22
  expected_attr = {
20
23
  'content_type' => 'text/html; charset=UTF-8',
21
24
  'from' => ['test@example.com'],
@@ -25,9 +28,13 @@ class MailSleuthObserverTest < ActionMailer::TestCase
25
28
  'charset' => 'UTF-8'
26
29
  }
27
30
 
28
- assert_equal expected_attr, log.attributes.slice(*expected_attr.keys)
29
- assert_equal Notifier, log.delivery_handler
30
- assert log.errors.empty?
31
+ assert_equal expected_attr, @log.attributes.slice(*expected_attr.keys)
32
+ assert_equal Notifier, @log.delivery_handler
33
+ assert @log.errors.empty?
34
+ end
35
+
36
+ def test_message_log_errors_is_an_array
37
+ assert_equal Array, @log.errors.class
31
38
  end
32
39
 
33
40
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_sleuth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nicolas Buduroi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-20 00:00:00 Z
18
+ date: 2012-03-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false