You communicate with an SMTP server using a socket, so it don't much 
matter what it is written it.

The idea here is that the SMTP server is under the control of the 
testing system. Instead of forwarding email, it can be queried to find 
out what email it would have sent. This query interface is what we would 
want to be in Ruby.

1. Run Mock SMTP server on port 25
2. When application sends email it will go to your mock server.
3. You ask your mock server what email it got.

Another option would be to add a mock/test interface to dumbster that 
would bind to another socket -- then it could be used from any language.

Bret

Paul Rogers wrote:
> Where would this be used in a ruby system? I didnt read thoroughly but I 
> thought this  mocked out the smtp server for a java system. Is your web app 
> written in ruby, so a ruby version of this can become a mock in your app?
>
> But saying that, I do agree it would be a great thing to do
>
> Paul
>
> ----- Original Message -----
> From: Bret Pettichord <[EMAIL PROTECTED]>
> Date: Wednesday, August 30, 2006 10:46 am
> Subject: Re: [Wtr-general] OT: more on testing email
>
>   
>> Any one want to port this to Ruby? It would be awesome!
>>
>> Chris McMahon wrote:
>>     
>>> This link just got posted on the agile-testing list, it looks 
>>> effective: http://quintanasoft.com/dumbster/
>>>       
>> _______________________________________________
>> Wtr-general mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/wtr-general
>>
>>     
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>   

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to