aboutsummaryrefslogtreecommitdiffstats
path: root/spec/script
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-06-25 10:02:17 +0100
committerLouise Crow <louise.crow@gmail.com>2015-06-25 13:15:55 +0100
commit68a306b56ce328bd4848adf6e2ab26feab8853f2 (patch)
treef80e4df5b2c099fef33f7b3edc6b0301f8648fce /spec/script
parent6e03858dc7c909fb9446c3aaf6c6bc6d17604585 (diff)
Handle non-UTF8 encoding in ruby 1.9 and aboveadd-widget-hotfixed
Diffstat (limited to 'spec/script')
-rw-r--r--spec/script/handle-mail-replies_spec.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb
index 90a8de27c..669fc0c10 100644
--- a/spec/script/handle-mail-replies_spec.rb
+++ b/spec/script/handle-mail-replies_spec.rb
@@ -12,10 +12,21 @@ 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