Permalink
Browse files

Fix test

[git-p4: depot-paths = "//src/ar_mailer/dev/": change = 5640]
  • Loading branch information...
1 parent e31b4c4 commit e6906b99a9a34c9b80d01f9ef95f145c7904d2c3 @drbrain drbrain committed Jan 29, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_arsendmail.rb
View
6 test/test_arsendmail.rb
@@ -364,9 +364,11 @@ def test_class_parse_args_pid_file
argv = %w[--pid-file]
- options = ActionMailer::ARSendmail.process_args argv
+ e = assert_raises OptionParser::InvalidArgument do
+ options = ActionMailer::ARSendmail.process_args argv
+ end
- assert_equal '/var/run/ar_sendmail/ar_sendmail.pid', options[:PidFile]
+ assert_match %r%/var/run/ar_sendmail does not exist%, e.message
argv = %w[--pid-file=/tmp/ar_sendmail.pid]

0 comments on commit e6906b9

Please sign in to comment.