diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:06:30 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 13:06:30 +1100 |
commit | 7587537cf37e965fb190fc2ac31fa9f40c7cf117 (patch) | |
tree | 3fae5721e20629b39c67f326ba3ab61c6d571a8e /spec/models/mail_server_log_spec.rb | |
parent | 14d84bd536883b2f10ed5c6ff4aaec4edfd17b0f (diff) |
Fix small bug where email domain wasn't being quoted in the regular expression
Diffstat (limited to 'spec/models/mail_server_log_spec.rb')
-rw-r--r-- | spec/models/mail_server_log_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/mail_server_log_spec.rb b/spec/models/mail_server_log_spec.rb index 3f87b76f1..d0a1d202f 100644 --- a/spec/models/mail_server_log_spec.rb +++ b/spec/models/mail_server_log_spec.rb @@ -85,6 +85,10 @@ describe MailServerLog do it "ignores an email with a different prefix" do MailServerLog.email_addresses_on_line("foitest+request-14-e0e09f97@example.com").should be_empty end + + it "ignores an email where the . is substituted for something else" do + MailServerLog.email_addresses_on_line("foi+request-14-e0e09f97@exampledcom").should be_empty + end end context "Postfix" do |