diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-06-25 10:02:17 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-06-25 13:27:15 +0100 |
commit | 48f07a68cb7373a9a032009ab760b5f4d156d6cd (patch) | |
tree | 2b8ef3ad11b0da82df71770f89d45684f20aab65 /spec/script/handle-mail-replies_spec.rb | |
parent | cad675442468a2dde61fad7c78fffe437d1138db (diff) |
Handle non-UTF8 encoding in ruby 1.9 and above0.20-version-dependent-caching
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb index 90a8de27c..ab61bb713 100644 --- a/spec/script/handle-mail-replies_spec.rb +++ b/spec/script/handle-mail-replies_spec.rb @@ -12,10 +12,20 @@ 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 == "" + + describe "when not in test mode" do + + it "should not fail handling a bounce mail" do + xc = ExternalCommand.new("script/handle-mail-replies") + xc.run(load_file_fixture("track-response-exim-bounce.email")) + xc.err.should == "" + end + + it 'should not fail handling a UTF8 encoded mail' do + xc = ExternalCommand.new("script/handle-mail-replies") + xc.run(load_file_fixture("russian.email")) + xc.err.should == "" + end end it "should detect an Exim bounce" do |