Sha256: c8b527aa8f7569a3e9609349ad1751255ac6b4f047bddf01973583ec994aee5c
Contents?: true
Size: 1.01 KB
Versions: 20
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Address do describe '#push_entity_to_global_registry_async' do it 'should enqueue sidekiq job' do address = build(:address) expect do address.push_entity_to_global_registry_async end.to change(GlobalRegistry::Bindings::Workers::PushEntityWorker.jobs, :size).by(1) end end describe '#delete_entity_from_global_registry_async' do it 'should enqueue sidekiq job' do address = build(:address, global_registry_id: '22527d88-3cba-11e7-b876-129bd0521531') expect do address.delete_entity_from_global_registry_async end.to change(GlobalRegistry::Bindings::Workers::DeleteEntityWorker.jobs, :size).by(1) end it 'should not enqueue sidekiq job when missing global_registry_id' do address = build(:address) expect do address.delete_entity_from_global_registry_async end.not_to change(GlobalRegistry::Bindings::Workers::DeleteEntityWorker.jobs, :size) end end end
Version data entries
20 entries across 20 versions & 1 rubygems