Sha256: f3459c2c892427f3625b2d4a832397319195f7409ae428cfe90a52739b8204f7

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 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 enabled config" do
      Async.backend = false
      Async.backend.must_equal false
    end

    after do
      Async.backend = :resque
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise-async-0.9.0 test/devise/async_test.rb
devise-async-0.8.0 test/devise/async_test.rb
devise-async-0.7.0 test/devise/async_test.rb