diff options
author | Louise Crow <louise.crow@gmail.com> | 2011-02-23 19:20:31 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2011-02-23 19:20:31 +0000 |
commit | a88c62acefa985eac2e67fb7563dc6653fd943f2 (patch) | |
tree | 94057fffcb2239a9da90cfead6d9dd38eb63a745 | |
parent | 44b3bc87eca0b3768a43c4f8702c8925d57bbd1e (diff) |
Changing expected sender from list to string when string is passed to STMP - presumably a small change in the way this is handled by action mailer.
-rw-r--r-- | spec/lib/sendmail_return_path_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/sendmail_return_path_spec.rb b/spec/lib/sendmail_return_path_spec.rb index 0a9f60953..f1a91240b 100644 --- a/spec/lib/sendmail_return_path_spec.rb +++ b/spec/lib/sendmail_return_path_spec.rb @@ -22,7 +22,7 @@ describe "when sending email with an altered return path" do mock_smtp.should_receive(:start).once.and_yield(mock_smtp_session) # the second parameter to the SMTP session is the sender (return path) - mock_smtp_session.should_receive(:sendmail).once.with(anything(), ["test@localhost"], anything()) + mock_smtp_session.should_receive(:sendmail).once.with(anything(), "test@localhost", anything()) Net::SMTP.stub!(:new).and_return(mock_smtp) |