Adds basic specs

This commit is contained in:
Brusk Awat 2023-04-05 23:51:27 +03:00
parent 6793ac10c5
commit 7bf316e309
Signed by: broosk1993
GPG Key ID: 5D20F7E02649F74E

View File

@ -1,11 +1,16 @@
# 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
it "does something useful" do
expect(false).to eq(true)
context 'polling publisher sidekiq worker' do
it "should be able to perform" do
expect {
Outboxable::PollingPublisherWorker.perform_async
}.to change(Outboxable::PollingPublisherWorker.jobs, :size).by(1)
end
end
end