diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-06-25 14:49:03 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-06-25 14:49:03 +0100 |
commit | f2e43ed1375d136bcf4599e3b23e15629dec17ab (patch) | |
tree | ca1c7a21bb8e7b302191c015363cf56b89a335c6 /spec/script/handle-mail-replies_spec.rb | |
parent | 2cce1794a4d9d2c42b83bab8a693900e8ca23ebc (diff) | |
parent | f031b9881a197539f0a33ffc0188cc6b8f98bb3e (diff) |
Merge branch 'hotfix/0.21.0.40' into release/0.22release/0.22
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb index 399d0d51d..e45f13fc9 100644 --- a/spec/script/handle-mail-replies_spec.rb +++ b/spec/script/handle-mail-replies_spec.rb @@ -13,11 +13,22 @@ 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", - { :stdin_string => load_file_fixture("track-response-exim-bounce.email") }) - xc.run - xc.err.should == "" + + describe "when not in test mode" do + + it "should not fail handling a bounce mail" do + xc = ExternalCommand.new("script/handle-mail-replies", + { :stdin_string => load_file_fixture("track-response-exim-bounce.email") }) + xc.run + xc.err.should == "" + end + + it 'should not fail handling a UTF8 encoded mail' do + xc = ExternalCommand.new("script/handle-mail-replies", + { :stdin_string => load_file_fixture("russian.email") }) + xc.run + xc.err.should == "" + end end it "should detect an Exim bounce" do |