resque-retry 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +4 -0
- data/lib/resque/plugins/retry.rb +1 -1
- data/test/retry_test.rb +5 -1
- metadata +3 -3
data/HISTORY.md
CHANGED
data/lib/resque/plugins/retry.rb
CHANGED
data/test/retry_test.rb
CHANGED
@@ -132,10 +132,14 @@ class RetryTest < Test::Unit::TestCase
|
|
132
132
|
assert_equal 6, Resque.info[:processed], 'processed job'
|
133
133
|
assert_equal 0, Resque.info[:pending], 'pending jobs'
|
134
134
|
end
|
135
|
-
|
135
|
+
|
136
136
|
def test_job_without_args_has_no_ending_colon_in_redis_key
|
137
137
|
assert_equal 'resque-retry:GoodJob:yarrrr', GoodJob.redis_retry_key('yarrrr')
|
138
138
|
assert_equal 'resque-retry:GoodJob:foo', GoodJob.redis_retry_key('foo')
|
139
139
|
assert_equal 'resque-retry:GoodJob', GoodJob.redis_retry_key
|
140
140
|
end
|
141
|
+
|
142
|
+
def test_redis_retry_key_removes_whitespace
|
143
|
+
assert_equal 'resque-retry:GoodJob:arg1-removespace', GoodJob.redis_retry_key('arg1', 'remove space')
|
144
|
+
end
|
141
145
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Luke Antins
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-06-02 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|