Sha256: e45a8781093a9f3fb4ac9407483855b69c84d8cade1417ef9b910a95f2814238

Contents?: true

Size: 592 Bytes

Versions: 7

Compression:

Stored size: 592 Bytes

Contents

require "test_helper"

module Devise
  module Async
    describe "Backend" do
      it "gives resque as the backend" do
        Backend.for(:resque).must_equal Backend::Resque
      end

      it "gives sidekiq as the backend" do
        Backend.for(:sidekiq).must_equal Backend::Sidekiq
      end

      it "gives delayed job as the backend" do
        Backend.for(:delayed_job).must_equal Backend::DelayedJob
      end

      it "alerts about unsupported backend" do
        assert_raises ArgumentError do
          Backend.for(:unsupported_backend)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise-async-0.4.0 test/devise/async/backend_test.rb
devise-async-0.3.1 test/devise/async/backend_test.rb
devise-async-0.3.0 test/devise/async/backend_test.rb
devise-async-0.2.0 test/devise/async/backend_test.rb
devise-async-0.1.1 test/devise/async/backend_test.rb
devise-async-0.1.0 test/devise/async/backend_test.rb
devise-async-0.0.2 test/devise/async/backend_test.rb