Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
=> The problem may be that you have not defined default_host for test environment
. Define default_host inside:
config/environments/test.rb
like this:
config.action_mailer.default_url_options = {:host => "localhost:3000"}