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.
- data/app/models/message_log.rb +6 -1
- data/lib/mail_sleuth/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +265 -0
- data/test/mail_sleuth_observer_test.rb +15 -8
- metadata +4 -4
data/app/models/message_log.rb
CHANGED
@@ -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
|
data/lib/mail_sleuth/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -995,3 +995,268 @@ TypeError: can't dump anonymous class Class: INSERT INTO "message_logs" ("charse
|
|
995
995
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
996
996
|
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
997
997
|
[1m[35m (0.1ms)[0m rollback transaction
|
998
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
999
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1000
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1001
|
+
[1m[35m (27.5ms)[0m commit transaction
|
1002
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1003
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1004
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1005
|
+
Rendered notifier/welcome.html.erb (1.0ms)
|
1006
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1007
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1009
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1012
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
1013
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1014
|
+
[1m[35m (21.6ms)[0m commit transaction
|
1015
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1016
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1017
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1018
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1019
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1020
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1022
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" [0m
|
1023
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1024
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1025
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
1026
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1027
|
+
[1m[35m (30.3ms)[0m commit transaction
|
1028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1029
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1030
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1031
|
+
Rendered notifier/welcome.html.erb (0.6ms)
|
1032
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1033
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1035
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1036
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1038
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1039
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1040
|
+
[1m[35m (28.7ms)[0m commit transaction
|
1041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1042
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1043
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1044
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1045
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1046
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1048
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1049
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1050
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1051
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
1052
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1053
|
+
[1m[35m (41.1ms)[0m commit transaction
|
1054
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1055
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1056
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1057
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1059
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1061
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1062
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1063
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1064
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1065
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1067
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1069
|
+
[1m[35mMessageLog Load (0.2ms)[0m SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
|
1070
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1072
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1073
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1074
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1075
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1076
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1078
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1079
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1080
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1081
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1082
|
+
[1m[35m (27.6ms)[0m commit transaction
|
1083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1084
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1085
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1086
|
+
Rendered notifier/welcome.html.erb (0.8ms)
|
1087
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1088
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1090
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1092
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1093
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1094
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1095
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1096
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1098
|
+
[1m[35mMessageLog Load (0.1ms)[0m SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
|
1099
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1100
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1101
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1102
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1103
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1104
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1105
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1107
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1109
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1110
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1111
|
+
[1m[35m (18.8ms)[0m commit transaction
|
1112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1113
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1114
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1115
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1116
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1117
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1119
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1122
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1123
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1124
|
+
Rendered notifier/welcome.html.erb (0.1ms)
|
1125
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1126
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1128
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1129
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1130
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1131
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1132
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1133
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1135
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1137
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1140
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
1141
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1142
|
+
[1m[35m (34.3ms)[0m commit transaction
|
1143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1144
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1145
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1146
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1147
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1148
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1150
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1151
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1152
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1153
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1154
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1155
|
+
Rendered notifier/welcome.html.erb (0.1ms)
|
1156
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1157
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1159
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1162
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1163
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1164
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1166
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1168
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1169
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1171
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1172
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1173
|
+
[1m[35m (30.4ms)[0m commit transaction
|
1174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1175
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1176
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1177
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1178
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1179
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1181
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1184
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1185
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1186
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1187
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1188
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1190
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1191
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1193
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1194
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1195
|
+
Rendered notifier/welcome.html.erb (0.1ms)
|
1196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1197
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1199
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1202
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1203
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1204
|
+
[1m[35m (22.1ms)[0m commit transaction
|
1205
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1206
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1207
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1208
|
+
Rendered notifier/welcome.html.erb (0.8ms)
|
1209
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1210
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1212
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1213
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1215
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1216
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1217
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1219
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1221
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1224
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1225
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1226
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1228
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1230
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1233
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
1234
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')[0m
|
1235
|
+
[1m[35m (35.8ms)[0m commit transaction
|
1236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1237
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1238
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1239
|
+
Rendered notifier/welcome.html.erb (0.7ms)
|
1240
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1241
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1243
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1245
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1246
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1247
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1248
|
+
Rendered notifier/welcome.html.erb (0.0ms)
|
1249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1250
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1252
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1253
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1255
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
|
1256
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 633107804]]
|
1257
|
+
Rendered notifier/welcome.html.erb (0.2ms)
|
1258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1259
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1261
|
+
[1m[36mMessageLog Load (0.1ms)[0m [1mSELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1[0m
|
1262
|
+
[1m[35m (0.1ms)[0m 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
|
-
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.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-
|
18
|
+
date: 2012-03-21 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
prerelease: false
|