require "test_helper" module Devise describe "Async" do it "yields self when setup is called" do Async.setup { |config| config.must_equal Async } end it "stores backend config" do Async.backend = :something Async.backend.must_equal :something end it "stores mailer config" do Async.mailer = "MyMailer" Async.mailer.must_equal "MyMailer" end after do Async.backend = :resque Async.mailer = "Devise::Mailer" end end end