mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 13:56:49 +00:00
18 lines
422 B
Ruby
18 lines
422 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'sidekiq/testing'
|
|
|
|
RSpec.describe Outboxable do
|
|
it 'has a version number' do
|
|
expect(Outboxable::VERSION).not_to be nil
|
|
end
|
|
|
|
context 'polling publisher sidekiq worker' do
|
|
it 'should be able to perform' do
|
|
expect do
|
|
Outboxable::PollingPublisherWorker.perform_async
|
|
end.to change(Outboxable::PollingPublisherWorker.jobs, :size).by(1)
|
|
end
|
|
end
|
|
end
|