spec/sidekiq/merger_spec.rb in sidekiq-merger-0.0.7 vs spec/sidekiq/merger_spec.rb in sidekiq-merger-0.0.8
- old
+ new
@@ -1,7 +1,14 @@
require "spec_helper"
describe Sidekiq::Merger do
it "has a version number" do
- expect(Sidekiq::Merger::VERSION).not_to be nil
+ 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
end