diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 16:00:54 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 16:00:54 +1100 |
commit | 1ad44c41e26a26bff20b37ceef1177c27afc5a06 (patch) | |
tree | f9b9b3581a9e7147477a4c5ccacaf6aeb80a7dba /spec/models/exim_log_spec.rb | |
parent | 36b9552ae4b44aba43a7de824c77a990cc827752 (diff) |
Do a very naive simple way of automatically detecting whether this is an exim or postfix log file
Diffstat (limited to 'spec/models/exim_log_spec.rb')
-rw-r--r-- | spec/models/exim_log_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/exim_log_spec.rb b/spec/models/exim_log_spec.rb index 87aa6d610..b9826be72 100644 --- a/spec/models/exim_log_spec.rb +++ b/spec/models/exim_log_spec.rb @@ -5,6 +5,7 @@ describe EximLog do before :each do Configuration.stub!(:incoming_email_domain).and_return("example.com") File.stub_chain(:stat, :mtime).and_return(DateTime.new(2012, 10, 10)) + EximLog.stub!(:detect_mta_log_type).and_return(:exim) end let(:log) {[ |