mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +00:00
Adds basic specs
This commit is contained in:
parent
6793ac10c5
commit
7bf316e309
@ -1,11 +1,16 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
require 'sidekiq/testing'
|
||||||
|
|
||||||
RSpec.describe Outboxable do
|
RSpec.describe Outboxable do
|
||||||
it "has a version number" do
|
it "has a version number" do
|
||||||
expect(Outboxable::VERSION).not_to be nil
|
expect(Outboxable::VERSION).not_to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does something useful" do
|
context 'polling publisher sidekiq worker' do
|
||||||
expect(false).to eq(true)
|
it "should be able to perform" do
|
||||||
|
expect {
|
||||||
|
Outboxable::PollingPublisherWorker.perform_async
|
||||||
|
}.to change(Outboxable::PollingPublisherWorker.jobs, :size).by(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user