Sha256: ef3d5d9120707da63c3ea4170e1075e9a7510d669910ff360c998e771189f138

Contents?: true

Size: 800 Bytes

Versions: 4

Compression:

Stored size: 800 Bytes

Contents

require "spec_helper"

describe Sidekiq::Merger do
  it "has a version number" do
    expect(described_class::VERSION).not_to be nil
  end
  describe ".create_task" do
    it "starts a monitoring task" do
      task = described_class.create_task
      expect(task).to be_a Concurrent::TimerTask
      task.shutdown
    end
  end
  describe ".configure" do
    it "yields to the config" do
      expect { |b| described_class.configure(&b) }.to yield_with_args(described_class.config)
    end
  end
  describe ".config" do
    it "returns a config" do
      expect(described_class.config).to be_a Sidekiq::Merger::Config
    end
    context "called twice" do
      it "returns the same config instance" do
        expect(described_class.config).to be described_class.config
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-merger-0.1.0 spec/sidekiq/merger_spec.rb
sidekiq-merger-0.0.12 spec/sidekiq/merger_spec.rb
sidekiq-merger-0.0.11 spec/sidekiq/merger_spec.rb
sidekiq-merger-0.0.10 spec/sidekiq/merger_spec.rb