Sha256: cf402554bbe26bcbf31f517505e4bb49979448b558b3711eac60c68fb606d78e
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
require "test_helper" module Devise module Async module Backend describe "Que" do it "enqueues job" do Que::Job.expects(:enqueue).with([:mailer_method, "User", 123, {}]) Que.enqueue(:mailer_method, "User", 123, {}) end it "delegates to devise mailer when delivering" do user = create_user ActionMailer::Base.deliveries = [] Backend::Que.enqueue(:confirmation_instructions, "User", user.id, {}) ActionMailer::Base.deliveries.size.must_equal 1 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devise-async-0.10.2 | test/devise/async/backend/que_test.rb |
devise-async-0.10.1 | test/devise/async/backend/que_test.rb |
devise-async-0.10.1.alpha | test/devise/async/backend/que_test.rb |