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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWFlMTA1Y2FkYTZkNjIxNmEyOTI0MmFiMDY3NDgwZTlkNTdjZWQ2Yw==
4
+ MzczMjhhM2ViNmUyYTRhYzNiNjljOTNkNWRjYjU4Mjk3NmVkNzg4Yw==
5
5
  data.tar.gz: !binary |-
6
- ZGY1N2M3OWZhNWRiNTBlMjI2OTg0OTA0ZGM1NDc3MTVhYzhkYzU5OQ==
6
+ N2M1OTMxM2NhYTc2MjY0NzAyMDkzMzdiYmVhYzAwNjlkZWRiZjNlMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjM2NzZjYzUzZDVkYzdhMTE1YTVmZjUzZTIwZDE4OTFkNzk2MzIxNTk2ZDA4
10
- MTc3ZGViM2NhMjFiMmYzMTI1NjRkMjY2NTk5NmRmYzBkNDY3YzJmZDNhZjY4
11
- OGVkY2QyY2U5ZjMzYjY3ZjFhNzRiNGUxNjljODU0NDAzOWM3NjE=
9
+ MTNkNDU5OWEzZTdkZWE4Mjc4OTQ3OTQwNGEzZDNmZjU1YjhhZGI3YjhlYzhh
10
+ ZjZlNzIxYmQwZmNhMWY3ZGY0Y2E0NzI4NWFhZjkwMDk0Nzk1ZmI4NjM3YjI4
11
+ NzEzZTllMTVmMDE0ZDc1Yzc5NjJmZmE2YWZhOWQzMzVkM2JjZmY=
12
12
  data.tar.gz: !binary |-
13
- YWI5YmY1ZTcxMDE1ZDM2YzgyMjA0OWQ4MmFjMDMxYzQ5OWZhMzgyYTI4YWY4
14
- OTI2NzFlOWZjMzI5MGVmYmFmMjMzOWIyNjY3OTM2Yjc1MTg4NjUyOWYwZGQ2
15
- MjA1OWE2NzU3NjkwZmE2Mjg4NWNlNzQzNzE1YmY1N2FkZmQ4NGU=
13
+ NjNmNDNhNjNiZmM4MTE1MjNhN2JlNDI0OTZhNDhlMzZkNWE0Mjg3ZGMyMTJh
14
+ YTg3NjNmZGVhOWQxNDYwZDQyOTc5MWIzMDczNTc5ODBlMWM0M2ZmYmNlMGU3
15
+ ZGViNmRjZDE3ZDIxZGIwNTI5OTI4NjdhNTBjOGVkYWQ2ZTRjMWU=
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.2
2
+ ---
3
+ * Matcher ```be_retryable false``` not producing correct output description
4
+
1
5
  0.2.1
2
6
  ---
3
7
  * Removed debug #puts
@@ -11,11 +11,17 @@ module RSpec
11
11
  end
12
12
 
13
13
  def description
14
- "retry #{number_of_description} times"
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 retry #{number_of_description} times but got #{@actual}"
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 retry #{number_of_description} times"
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
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Sidekiq
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
@@ -3,5 +3,5 @@ require "spec_helper"
3
3
  describe "Version" do
4
4
  subject { RSpec::Sidekiq::VERSION }
5
5
 
6
- expect_it { to eq("0.2.1") }
6
+ expect_it { to eq("0.2.2") }
7
7
  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.1
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-27 00:00:00.000000000 Z
11
+ date: 2013-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec