diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-01-15 15:26:48 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-23 18:24:45 +0000 |
commit | ddc100364d9a1172817026181477faefe547ae3e (patch) | |
tree | 607dc550b6619b678197e9e39281c7130185e923 /spec/script/handle-mail-replies_spec.rb | |
parent | e7b1cc6d8da1ebf98b5d966ffa67682b24f3a483 (diff) |
Set options via options hash only.
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 11 |
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 |