rspec-sidekiq 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGES.md +4 -0
- data/lib/rspec/sidekiq/matchers/be_retryable.rb +9 -7
- data/lib/rspec/sidekiq/version.rb +1 -1
- data/spec/rspec/sidekiq/version_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzczMjhhM2ViNmUyYTRhYzNiNjljOTNkNWRjYjU4Mjk3NmVkNzg4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2M1OTMxM2NhYTc2MjY0NzAyMDkzMzdiYmVhYzAwNjlkZWRiZjNlMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTNkNDU5OWEzZTdkZWE4Mjc4OTQ3OTQwNGEzZDNmZjU1YjhhZGI3YjhlYzhh
|
10
|
+
ZjZlNzIxYmQwZmNhMWY3ZGY0Y2E0NzI4NWFhZjkwMDk0Nzk1ZmI4NjM3YjI4
|
11
|
+
NzEzZTllMTVmMDE0ZDc1Yzc5NjJmZmE2YWZhOWQzMzVkM2JjZmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjNmNDNhNjNiZmM4MTE1MjNhN2JlNDI0OTZhNDhlMzZkNWE0Mjg3ZGMyMTJh
|
14
|
+
YTg3NjNmZGVhOWQxNDYwZDQyOTc5MWIzMDczNTc5ODBlMWM0M2ZmYmNlMGU3
|
15
|
+
ZGViNmRjZDE3ZDIxZGIwNTI5OTI4NjdhNTBjOGVkYWQ2ZTRjMWU=
|
data/CHANGES.md
CHANGED
@@ -11,11 +11,17 @@ module RSpec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def description
|
14
|
-
|
14
|
+
if @expected.is_a?(Fixnum)
|
15
|
+
"retry #{@expected} times" # retry: 5
|
16
|
+
elsif @expected
|
17
|
+
"retry the default number of times" # retry: true
|
18
|
+
else
|
19
|
+
"not retry" # retry: false
|
20
|
+
end
|
15
21
|
end
|
16
22
|
|
17
23
|
def failure_message
|
18
|
-
"expected #{@klass} to
|
24
|
+
"expected #{@klass} to #{description} but got #{@actual}"
|
19
25
|
end
|
20
26
|
|
21
27
|
def matches? job
|
@@ -25,11 +31,7 @@ module RSpec
|
|
25
31
|
end
|
26
32
|
|
27
33
|
def negative_failure_message
|
28
|
-
"expected #{@klass} to not
|
29
|
-
end
|
30
|
-
|
31
|
-
def number_of_description
|
32
|
-
@expected.is_a?(Fixnum) ? @expected : "the default number of"
|
34
|
+
"expected #{@klass} to not #{description}"
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil Ostler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|