Sha256: 13fccb498731ec1f14850e12ef37b563c1cb288a2c084c5a269d9cd2dca9eff0
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require "test_helper" module Devise module Async describe "Model" do it "accumulates notifications to be send after commit" do admin = create_admin admin.send_confirmation_instructions admin.send(:devise_pending_notifications).must_equal [:confirmation_instructions] Worker.expects(:enqueue).never end it "triggers enqueues the notifications on save" do admin = create_admin admin.send_confirmation_instructions Worker.expects(:enqueue).with(:confirmation_instructions, "Admin", admin.id.to_s) admin.update_attribute(:username, "newusername") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise-async-0.3.0 | test/devise/async/model_test.rb |