aboutsummaryrefslogtreecommitdiffstats
path: root/spec/script/handle-mail-replies_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-30 16:00:02 +0100
committerLouise Crow <louise.crow@gmail.com>2015-03-30 16:00:02 +0100
commitf24cc98afa25ad6010ae5316eecc15dfdb3fa79b (patch)
treec32fecb16bb2097da7dfdf90e6915fce0bf1a425 /spec/script/handle-mail-replies_spec.rb
parent823e58dc69960c600230b10604a0051359173f85 (diff)
parent3c0604cf900ad274d8f6ff421d39854ccbf4b6af (diff)
Merge branch 'release/0.21'0.21.0.0
Conflicts: locale/cy/app.po locale/es_NI/app.po locale/hr/app.po locale/is_IS/app.po locale/sr@latin/app.po
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r--spec/script/handle-mail-replies_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb
index 90a8de27c..62d5c1dab 100644
--- a/spec/script/handle-mail-replies_spec.rb
+++ b/spec/script/handle-mail-replies_spec.rb
@@ -3,9 +3,9 @@ require "external_command"
def mail_reply_test(email_filename)
Dir.chdir Rails.root do
- xc = ExternalCommand.new("script/handle-mail-replies", "--test")
- xc.run(load_file_fixture(email_filename))
-
+ xc = ExternalCommand.new("script/handle-mail-replies", "--test",
+ :stdin_string => load_file_fixture(email_filename))
+ xc.run
xc.err.should == ""
return xc
end
@@ -13,8 +13,9 @@ 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 = ExternalCommand.new("script/handle-mail-replies",
+ { :stdin_string => load_file_fixture("track-response-exim-bounce.email") })
+ xc.run
xc.err.should == ""
end