Sha256: 249b156956733d38cb565f85384753011012ded6e0ed27a843c64a40b52a3fb6
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
require "test_helper" module Devise module Async module Backend describe "Resque" do it "enqueues job" do ::Resque.expects(:enqueue).with(Resque, :mailer_method, "User", 123) Resque.enqueue(:mailer_method, "User", 123) end it "delegates to devise mailer when delivering" do user = create_user ActionMailer::Base.deliveries = [] Backend::Resque.perform(: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.1.1 | test/devise/async/backend/resque_test.rb |
devise-async-0.1.0 | test/devise/async/backend/resque_test.rb |
devise-async-0.0.2 | test/devise/async/backend/resque_test.rb |