1
votes

I have a Rails 4.2 app using Devise. I had to customize the Registrations controller in #create, and whenever i run my feature specs, i keep getting the error:

Errno::EADDRNOTAVAIL: Cant assign requested address - connect(2) for nil port 0

enter image description here

I'm out of ideas. What's going on? All my devise controller specs work fine, testing manually works fine, but what configuration remains?

My feature spec: /spec/features/visitor/visitor_can_signup_spec.rb

enter image description here

Thanks in advanced!

1
what is the :devise metadata tag on your feature doing? Is it used to start an auth server of some kind for those feature tests?Thomas Walpole

1 Answers

0
votes

Turns out i had my config/environments/test.rb had the wrong mailer setting.

I had

config.action_mailer.delivery_method = :smtp

so i changed it to:

config.action_mailer.delivery_method = :test