rspec-enqueue_sidekiq_job 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/enqueue_sidekiq_job.rb +1 -3
- data/lib/rspec/enqueue_sidekiq_job/version.rb +1 -1
- data/spec/rspec/enqueue_sidekiq_job_spec.rb +0 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d259e0f5317a14c23bcbb2e259afb45c3cc822ed8eade111c723b957048010f9
|
4
|
+
data.tar.gz: 59b9652a42269fb8c904d5f381801d7ee678ab866f8e5639b14af8e1a2fd267f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30809f2c8338043ff9dd69bd9764a5089d5a277e8cdfd202ce1dac6afaf304851f44af83476bbda32e8c629975b117e7d55f0e9cfbbe43141867b47f4cdefc0a
|
7
|
+
data.tar.gz: 432c0d44386e94336362542c00a5ca810916b4860d680cb715f0c3da1ef65175082f49be90f7058c268069a9b8fe07f5f4897c80f6a1915b059dbf84f500bed1
|
data/README.md
CHANGED
@@ -32,9 +32,7 @@ module RSpec
|
|
32
32
|
@worker_class = worker_class
|
33
33
|
end
|
34
34
|
|
35
|
-
def with(*expected_arguments
|
36
|
-
raise 'keyword arguments serialization is not supported by Sidekiq' unless kwargs.empty?
|
37
|
-
|
35
|
+
def with(*expected_arguments)
|
38
36
|
@expected_arguments = expected_arguments
|
39
37
|
self
|
40
38
|
end
|
@@ -171,13 +171,6 @@ RSpec.describe RSpec::EnqueuedSidekiqJob do
|
|
171
171
|
end
|
172
172
|
|
173
173
|
context 'with arguments' do
|
174
|
-
it 'fails with kwargs' do
|
175
|
-
expect {
|
176
|
-
expect { worker.perform_async }
|
177
|
-
.to enqueue_sidekiq_job(worker).with(42, name: 'David')
|
178
|
-
}.to raise_error(/keyword arguments serialization is not supported by Sidekiq/)
|
179
|
-
end
|
180
|
-
|
181
174
|
it 'passes with provided arguments' do
|
182
175
|
expect { worker.perform_async(42, 'David') }
|
183
176
|
.to enqueue_sidekiq_job(worker).with(42, 'David')
|