rspec-goodies 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rspec/goodies/matchers/sidekiq.rb +6 -5
- data/rspec-goodies.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 329814af431141f0f8bbcf536e7fb7a44c93443d72a04a5de828846221142ad3
|
4
|
+
data.tar.gz: 9593b164a64de413f98ef93b974c030b0516fd5f304d04338cef0bd4e6c3b75c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8aa401ba3286dd94104b5eb5338b165b4a7a834a47e9f31b3a5a04fcb8bbce568fe30fa7bd6492fc411ce856d4458fd138a33bcb5fb33aec427f9dd273deb6
|
7
|
+
data.tar.gz: 3bf310ebe13ad2c26dddad8ee924ea680874dcc2645a141f2d15c162ed1d734c90a27ebf99194737587267580c2206b79e285426b99da114cc0bf4738b19e6c0
|
data/Gemfile.lock
CHANGED
@@ -44,13 +44,14 @@ class SidekiqJobsEnqueuedMatcher
|
|
44
44
|
|
45
45
|
expect(Array(job[key])).to match(value)
|
46
46
|
when "at"
|
47
|
-
|
47
|
+
# If nil, then we are looking for jobs that aren't scheduled
|
48
|
+
if value.nil?
|
49
|
+
expect(job.key?("at")).to eq false
|
50
|
+
else
|
48
51
|
# It's a float in job
|
49
|
-
|
52
|
+
scheduled_at = job[key]
|
50
53
|
|
51
|
-
|
52
|
-
else
|
53
|
-
expect(job.key?("at")).to eq false
|
54
|
+
expect(scheduled_at).to eq(value.to_f)
|
54
55
|
end
|
55
56
|
when "bid"
|
56
57
|
expect(job[key]).to match(value)
|
data/rspec-goodies.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-goodies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|