sidekiq-dynamic-queues 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/lib/sidekiq/dynamic_queues/fetch.rb +1 -0
- data/lib/sidekiq/dynamic_queues/version.rb +1 -1
- data/spec/queues_spec.rb +8 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/spec/queues_spec.rb
CHANGED
@@ -8,7 +8,8 @@ describe "Dynamic Queues" do
|
|
8
8
|
def watch_queues(*queues)
|
9
9
|
Sidekiq.redis do |r|
|
10
10
|
queues.each {|q| r.sadd('queues', q) }
|
11
|
-
|
11
|
+
r.del('queues') if queues.size == 0
|
12
|
+
end
|
12
13
|
end
|
13
14
|
|
14
15
|
before(:each) do
|
@@ -92,6 +93,12 @@ describe "Dynamic Queues" do
|
|
92
93
|
before(:each) do
|
93
94
|
watch_queues(*%w[high_x foo high_y superhigh_z])
|
94
95
|
end
|
96
|
+
|
97
|
+
it "uses default when wildcard empty" do
|
98
|
+
watch_queues()
|
99
|
+
fetch = Fetch.new(:queues => %w[*], :strict => true)
|
100
|
+
fetch.queues_cmd.should eq ["queue:default", SFTO]
|
101
|
+
end
|
95
102
|
|
96
103
|
it "can specify simple queues" do
|
97
104
|
fetch = Fetch.new(:queues => %w[foo], :strict => true)
|