Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-03-06 Thread Raimond Garcia
Manasi Vora wrote: >> >> > > > Hi Rai, > > Good that you have found a solution.. > > but I still don't understand why you want to test sending mails from the > browser. In my project, we use Cucumber + Webrat for writing functional > features. > and Cucumber + selenium for acceptance features

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-03-06 Thread Manasi v
> Yeap everything worked like a charm, once again checking email contents > like there is no tomorrow ;-) > > Rai > -- > Posted via http://www.ruby-forum.com/. > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailm

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-19 Thread Raimond Garcia
>1. >http://seattlerb.rubyforge.org/ar_mailer/classes/ActionMailer/ARMailer.html > P.S. I'll follow up with a confirmation post just to let the people know > how it worked out for us with ARMailer. Yeap everything worked like a charm, once again checking email contents like there is no tomorrow

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-19 Thread Raimond Garcia
Thanks guys, very interesting points. As a good collegue of mine says, its all about trade offs :) I agree with changing your production code to make it more testable, definitely, especially early on in the development process, once your site is up and running it would have to be done with extr

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Stephen Eley
On Thu, Feb 19, 2009 at 12:13 AM, Ben Mabey wrote: > > Both ways involve some extra work. If it isn't worth the investment then > the only other option is to test the emails apart from the selenium tests. > It just depends on how important it is that you test everything at the same > time. Good

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Ben Mabey
Stephen Eley wrote: On Wed, Feb 18, 2009 at 6:27 PM, Ben Mabey wrote: Well, in this case the ARMailer is an arguably better alternative than waiting on an SMTP connection for ActionMailer in production settings. ARMailer was not created to solve testing woes.. it was created it solve produc

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Stephen Eley
On Wed, Feb 18, 2009 at 6:27 PM, Ben Mabey wrote: > > Well, in this case the ARMailer is an arguably better alternative than > waiting on an SMTP connection for ActionMailer in production settings. > ARMailer was not created to solve testing woes.. it was created it solve > production woes. :) T

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Stephen Eley
On Wed, Feb 18, 2009 at 8:43 PM, Pat Maddox wrote: > > I'm not commenting on this particular situation, but if I want to use > some library, but I can't figure out how to write tests for my code > that uses it, then I don't use it. I take the opposite view. My *goal* in coding isn't to write goo

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Mark Wilden
On Wed, Feb 18, 2009 at 5:43 PM, Pat Maddox wrote: > > Basically, if I have to change something to make it testable, I do. Yeah. Testability is a positive attribute. If you'd change code to make it more readable or more speedy, why not more testable? ///ark __

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Pat Maddox
On Wed, Feb 18, 2009 at 3:15 PM, Stephen Eley wrote: > On Wed, Feb 18, 2009 at 3:02 PM, Ben Mabey wrote: >> >> One option is to use ARMailer[1] to queue your mail. As long as your >> selenium process and test process are using the same DB without transactions >> getting in the way then ARMailer

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Ben Mabey
Stephen Eley wrote: On Wed, Feb 18, 2009 at 3:02 PM, Ben Mabey wrote: One option is to use ARMailer[1] to queue your mail. As long as your selenium process and test process are using the same DB without transactions getting in the way then ARMailer should work fine for what you want to do.

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Stephen Eley
On Wed, Feb 18, 2009 at 3:02 PM, Ben Mabey wrote: > > One option is to use ARMailer[1] to queue your mail. As long as your > selenium process and test process are using the same DB without transactions > getting in the way then ARMailer should work fine for what you want to do. Is changing produ

Re: [rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Ben Mabey
Raimond Garcia wrote: Hi, We are upgrading to cucumber 0.1.99 in the process we also upgraded to the latest versions of webrat and rspec. However now we are having difficulties checking for ActionMailer.deliveries in the selenium features. I seem to recall being able to check for these without

[rspec-users] Cucumber + Webrat + Selenium + ActionMailer

2009-02-18 Thread Raimond Garcia
Hi, We are upgrading to cucumber 0.1.99 in the process we also upgraded to the latest versions of webrat and rspec. However now we are having difficulties checking for ActionMailer.deliveries in the selenium features. I seem to recall being able to check for these without problems using webrat's