Sha256: d9b143c77048c6f1125542c73d45edb411334e296f67685ead7e35beeb621c37
Contents?: true
Size: 807 Bytes
Versions: 7
Compression:
Stored size: 807 Bytes
Contents
require "test_helper" module Devise module Async describe "Worker" do it "enqueues job using the resque backend" do Devise::Async.backend = :resque Backend::Resque.expects(:enqueue).with(:mailer_method, "User", 123) Worker.enqueue(:mailer_method, "User", 123) end it "enqueues job using the sidekiq backend" do Devise::Async.backend = :sidekiq Backend::Sidekiq.expects(:enqueue).with(:mailer_method, "User", 123) Worker.enqueue(:mailer_method, "User", 123) end it "enqueues job using the delayed job backend" do Devise::Async.backend = :delayed_job Backend::DelayedJob.expects(:enqueue).with(:mailer_method, "User", 123) Worker.enqueue(:mailer_method, "User", 123) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems