rspec-activejob 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/rspec/active_job/enqueue_a.rb +1 -1
- data/lib/rspec/active_job/version.rb +1 -1
- data/spec/rspec/active_job/enqueue_a_spec.rb +21 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c85f07d8fed679d6ba98c874138dc4aa94dab7c
|
4
|
+
data.tar.gz: 2500787016954f418afc77fbb58181df4f7bfd44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec5ecf3f8a5cef9ebf37363a7785640dbb919a5b4496bcc07db6cbaf27a5912c5de4ebfcf44164bd9ccecd7bef2255b2c79c5345d2f463be4c76239de8fd2e21
|
7
|
+
data.tar.gz: 4158e055e60c79150681b3de6a941645a5640a6b6e8f1772ca37729050b5ac7c4daa3cead4f54fe1441f651e97fdbdb6c11ebb36c5aeb4d10b26562cc634719c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.6.1 - October 20, 2015
|
2
|
+
|
3
|
+
- Make `once` and `times(n)` modifiers play nicely with other jobs being enqueued - patch
|
4
|
+
by [@basawyer](https://github.com/basawyer)
|
5
|
+
|
1
6
|
## 0.6.0 - October 15, 2015
|
2
7
|
|
3
8
|
- Add `once` and `times(n)` modifiers - patch by [@antstorm](https://github.com/antstorm)
|
data/Gemfile.lock
CHANGED
@@ -192,9 +192,17 @@ RSpec.describe RSpec::ActiveJob::Matchers::EnqueueA do
|
|
192
192
|
subject(:matches?) { instance.once.matches?(AJob) }
|
193
193
|
|
194
194
|
context "correct number of times" do
|
195
|
-
|
195
|
+
context "as the only job" do
|
196
|
+
let(:enqueued_jobs) { [{ job: AJob, args: [] }] }
|
196
197
|
|
197
|
-
|
198
|
+
it { is_expected.to be(true) }
|
199
|
+
end
|
200
|
+
|
201
|
+
context "with other jobs" do
|
202
|
+
let(:enqueued_jobs) { [{ job: AJob, args: [] }, { job: BJob, args: [] }] }
|
203
|
+
|
204
|
+
it { is_expected.to be(true) }
|
205
|
+
end
|
198
206
|
end
|
199
207
|
|
200
208
|
context "wrong number of times" do
|
@@ -216,11 +224,19 @@ RSpec.describe RSpec::ActiveJob::Matchers::EnqueueA do
|
|
216
224
|
subject(:matches?) { instance.times(2).matches?(AJob) }
|
217
225
|
|
218
226
|
context "correct number of times" do
|
219
|
-
|
220
|
-
[{ job: AJob, args: [] }, { job: AJob, args: [] }]
|
227
|
+
context "as the only job" do
|
228
|
+
let(:enqueued_jobs) { [{ job: AJob, args: [] }, { job: AJob, args: [] }] }
|
229
|
+
|
230
|
+
it { is_expected.to be(true) }
|
221
231
|
end
|
222
232
|
|
223
|
-
|
233
|
+
context "with other jobs" do
|
234
|
+
let(:enqueued_jobs) do
|
235
|
+
[{ job: AJob, args: [] }, { job: AJob, args: [] }, { job: BJob, args: [] }]
|
236
|
+
end
|
237
|
+
|
238
|
+
it { is_expected.to be(true) }
|
239
|
+
end
|
224
240
|
end
|
225
241
|
|
226
242
|
context "wrong number of times" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Seymour
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|