Forum: Ruby on Rails Sending email in functional test times out

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2006-02-28 02:27
(Received via mailing list)
I'm writing a functional test to see if an email was generated from a
particular action.  The action of course sends an email at some
point..but the test says it times out.
config.action_mailer.delivery_method is set to :test in
config/environments/test.rb, not sure why it would be ignoring that.
If I take out my email config from environment.rb, the test runs fine.
 Here's the exception:

Loaded suite test/functional/contact_controller_test
./usr/local/lib/ruby/1.8/timeout.rb:54:in `new': execution expired
        from /usr/local/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
        from /usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout'
        from /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout'
        from /usr/local/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
        from /usr/local/lib/ruby/1.8/net/smtp.rb:393:in `do_start'
        from /usr/local/lib/ruby/1.8/net/smtp.rb:378:in `start'
        from /usr/local/lib/ruby/1.8/net/smtp.rb:316:in `start'
         ... 24 levels...
        from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:200:in
        from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
        from /usr/local/lib/ruby/1.8/test/unit.rb:285
        from test/functional/contact_controller_test.rb:22
This topic is locked and can not be replied to.