Sha256: a168c009639678766957f8cda6231e6a52eb0ded4c38559c6cdb1684c330226f

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-async-0.5.1 test/devise/async_test.rb
devise-async-0.5.0 test/devise/async_test.rb
devise-async-0.4.0 test/devise/async_test.rb
devise-async-0.3.1 test/devise/async_test.rb
devise-async-0.3.0 test/devise/async_test.rb
devise-async-0.2.0 test/devise/async_test.rb
devise-async-0.1.1 test/devise/async_test.rb
devise-async-0.1.0 test/devise/async_test.rb