sidekiq-unique-jobs 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq-unique-jobs might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c45fa6d6faaedc2eb3df2cb7adf815542acfad
|
4
|
+
data.tar.gz: adba5484ba2d2162db6cbf04bb3c73527c44cfa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24640f6eaa634d5b6aa0bcc0e532e72a9d255e4b71035527ec5edc0bc76d890c7ce1b50962ce74b6e114d02106d9913c0d88844a8172f32e0c47b579c5faa627
|
7
|
+
data.tar.gz: 5db2d29daa350d4b7427bf90a5728b0ce57753bb907e176b9a65546fc2c39c2bbb37b9d0dde299b02bcc6be0f63183eaa19503a0a96586318a009d1acc836c13
|
@@ -17,6 +17,14 @@ describe "When Sidekiq::Testing is enabled" do
|
|
17
17
|
UniqueWorker.perform_async(param)
|
18
18
|
expect(UniqueWorker.jobs.size).to eq(1)
|
19
19
|
end
|
20
|
+
|
21
|
+
it "adds the unique_hash to the message" do
|
22
|
+
param = 'hash'
|
23
|
+
hash = SidekiqUniqueJobs::PayloadHelper.get_payload(UniqueWorker, :working, [param])
|
24
|
+
UniqueWorker.perform_async(param)
|
25
|
+
expect(UniqueWorker.jobs.size).to eq(1)
|
26
|
+
expect(UniqueWorker.jobs.first['unique_hash']).to eq(hash)
|
27
|
+
end
|
20
28
|
end
|
21
29
|
|
22
30
|
context "with non-unique worker" do
|