diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-14 10:05:06 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-14 10:05:06 +0100 |
commit | b94bfb8540e56ae490ca3177688c63c3fad48696 (patch) | |
tree | 121726cd47e49732770eb6c6c0fe6c8097ed90fb /spec/script/handle-mail-replies_spec.rb | |
parent | 7c8465943e78cf723295bdef0ec7e397581ffabd (diff) |
Fix bug that was preventing Rails from loading when *not* in test mode (exposed by the bug fixed in 7c846594 that was introduced in 775e122c)
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb index 75a2aa6ad..406af9ee3 100644 --- a/spec/script/handle-mail-replies_spec.rb +++ b/spec/script/handle-mail-replies_spec.rb @@ -12,6 +12,12 @@ def mail_reply_test(email_filename) end describe "When filtering" do + it "should not fail when not in test mode" do + xc = ExternalCommand.new("script/handle-mail-replies") + xc.run(load_file_fixture("track-response-exim-bounce.email")) + xc.err.should == "" + end + it "should detect an Exim bounce" do r = mail_reply_test("track-response-exim-bounce.email") r.status.should == 1 |