Im using rspec for testing,
rails 4.2.1
devise 3.5.3
user.send_confirmation_instructions is returning:
NoMethodError:
undefined method `devise_mailer' for nil:NilClass
sidekiq.yml
---
:concurrency: 5
:pidfile: tmp/pids/sidekiq.pid
staging:
:concurrency: 10
production:
:concurrency: 20
:queues:
- default
- mailer
- [myqueue, 2]
devise_async.rb
Devise::Async.backend = :sidekiq
Devise::Async.enabled = true
Devise::Async.queue = :default
I have tried :mailer as well.
user.rb
devise :database_authenticatable, :registerable, :confirmable,
:recoverable, :rememberable, :trackable, :validatable, :async
This seems like an config/ internal issue.
I have followed the guides. What could I possibly be missing?